package com.study.system.controller;

import com.study.server.domain.Test;
import com.study.server.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class TestController {

    @Resource
    private TestService service;


   @RequestMapping(value = "/d")
   public List<Test> get(){

       System.out.println("444");
       return  service.list();
   }
}
